import requests
url='https://www.baidu.com'
def alex(a):
    try:
        if response.status_code == 200:
            return response.text
        else:
            response = requests.get(url + '/time')
    except Exception as e:
        return f"An error occurred: {e}"

@alex
def get_current_time(url):
    response = requests.get(url + '/time')
    print(response.status_code)
